package com.david.func_test

import android.app.Activity
import android.app.Dialog
import android.os.Bundle
import android.view.Gravity
import android.view.WindowManager

class DiscoverFloatShopFilterPop(context: Activity): Dialog(context, R.style.FullScreenDialogStyle) {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.community_pop_discover_float_shopfilter)
        window?.setBackgroundDrawableResource(android.R.color.transparent)

    }

    override fun show() {
        val params = window?.attributes
        params?.width = WindowManager.LayoutParams.MATCH_PARENT
        params?.height = WindowManager.LayoutParams.MATCH_PARENT
        params?.dimAmount = 0.5f
        window?.setGravity(Gravity.BOTTOM)
        super.show()
    }
}